/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
 *
 */

import { RequiredNamed } from '../options.js';

export namespace RouterMapOptions {
  export interface RouterMapOpt extends RequiredNamed {
    routerMap: RouterMapObj[];
  }

  export interface RouterMapObj extends RequiredNamed {
    name: string;
    pageModule?: string;
    pageSourceFile: string;
    buildFunction: string;
    data: object;
    ohmurl?: string;
    bundleName?: string;
    moduleName?: string;

    // 该路由表配置对象对应模块根路径
    moduleNodeDir?: string;
    originalSuffix?: string;
    packageName?: string;
  }

  export interface intermediatesRouterMapObj extends RequiredNamed {
    name: string;
    pageSourceFile: string;
    buildFunction: string;
    ohmurl?: string;
  }
}
